package com.greyu.ysj.entity;

import java.util.ArrayList;
import java.util.List;

public class CbtCreateCoinExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public CbtCreateCoinExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCoinIdIsNull() {
            addCriterion("coin_id is null");
            return (Criteria) this;
        }

        public Criteria andCoinIdIsNotNull() {
            addCriterion("coin_id is not null");
            return (Criteria) this;
        }

        public Criteria andCoinIdEqualTo(Integer value) {
            addCriterion("coin_id =", value, "coinId");
            return (Criteria) this;
        }

        public Criteria andCoinIdNotEqualTo(Integer value) {
            addCriterion("coin_id <>", value, "coinId");
            return (Criteria) this;
        }

        public Criteria andCoinIdGreaterThan(Integer value) {
            addCriterion("coin_id >", value, "coinId");
            return (Criteria) this;
        }

        public Criteria andCoinIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("coin_id >=", value, "coinId");
            return (Criteria) this;
        }

        public Criteria andCoinIdLessThan(Integer value) {
            addCriterion("coin_id <", value, "coinId");
            return (Criteria) this;
        }

        public Criteria andCoinIdLessThanOrEqualTo(Integer value) {
            addCriterion("coin_id <=", value, "coinId");
            return (Criteria) this;
        }

        public Criteria andCoinIdIn(List<Integer> values) {
            addCriterion("coin_id in", values, "coinId");
            return (Criteria) this;
        }

        public Criteria andCoinIdNotIn(List<Integer> values) {
            addCriterion("coin_id not in", values, "coinId");
            return (Criteria) this;
        }

        public Criteria andCoinIdBetween(Integer value1, Integer value2) {
            addCriterion("coin_id between", value1, value2, "coinId");
            return (Criteria) this;
        }

        public Criteria andCoinIdNotBetween(Integer value1, Integer value2) {
            addCriterion("coin_id not between", value1, value2, "coinId");
            return (Criteria) this;
        }

        public Criteria andCoinEnglishNameIsNull() {
            addCriterion("coin_english_name is null");
            return (Criteria) this;
        }

        public Criteria andCoinEnglishNameIsNotNull() {
            addCriterion("coin_english_name is not null");
            return (Criteria) this;
        }

        public Criteria andCoinEnglishNameEqualTo(String value) {
            addCriterion("coin_english_name =", value, "coinEnglishName");
            return (Criteria) this;
        }

        public Criteria andCoinEnglishNameNotEqualTo(String value) {
            addCriterion("coin_english_name <>", value, "coinEnglishName");
            return (Criteria) this;
        }

        public Criteria andCoinEnglishNameGreaterThan(String value) {
            addCriterion("coin_english_name >", value, "coinEnglishName");
            return (Criteria) this;
        }

        public Criteria andCoinEnglishNameGreaterThanOrEqualTo(String value) {
            addCriterion("coin_english_name >=", value, "coinEnglishName");
            return (Criteria) this;
        }

        public Criteria andCoinEnglishNameLessThan(String value) {
            addCriterion("coin_english_name <", value, "coinEnglishName");
            return (Criteria) this;
        }

        public Criteria andCoinEnglishNameLessThanOrEqualTo(String value) {
            addCriterion("coin_english_name <=", value, "coinEnglishName");
            return (Criteria) this;
        }

        public Criteria andCoinEnglishNameLike(String value) {
            addCriterion("coin_english_name like", value, "coinEnglishName");
            return (Criteria) this;
        }

        public Criteria andCoinEnglishNameNotLike(String value) {
            addCriterion("coin_english_name not like", value, "coinEnglishName");
            return (Criteria) this;
        }

        public Criteria andCoinEnglishNameIn(List<String> values) {
            addCriterion("coin_english_name in", values, "coinEnglishName");
            return (Criteria) this;
        }

        public Criteria andCoinEnglishNameNotIn(List<String> values) {
            addCriterion("coin_english_name not in", values, "coinEnglishName");
            return (Criteria) this;
        }

        public Criteria andCoinEnglishNameBetween(String value1, String value2) {
            addCriterion("coin_english_name between", value1, value2, "coinEnglishName");
            return (Criteria) this;
        }

        public Criteria andCoinEnglishNameNotBetween(String value1, String value2) {
            addCriterion("coin_english_name not between", value1, value2, "coinEnglishName");
            return (Criteria) this;
        }

        public Criteria andCoinSymbolIsNull() {
            addCriterion("coin_symbol is null");
            return (Criteria) this;
        }

        public Criteria andCoinSymbolIsNotNull() {
            addCriterion("coin_symbol is not null");
            return (Criteria) this;
        }

        public Criteria andCoinSymbolEqualTo(String value) {
            addCriterion("coin_symbol =", value, "coinSymbol");
            return (Criteria) this;
        }

        public Criteria andCoinSymbolNotEqualTo(String value) {
            addCriterion("coin_symbol <>", value, "coinSymbol");
            return (Criteria) this;
        }

        public Criteria andCoinSymbolGreaterThan(String value) {
            addCriterion("coin_symbol >", value, "coinSymbol");
            return (Criteria) this;
        }

        public Criteria andCoinSymbolGreaterThanOrEqualTo(String value) {
            addCriterion("coin_symbol >=", value, "coinSymbol");
            return (Criteria) this;
        }

        public Criteria andCoinSymbolLessThan(String value) {
            addCriterion("coin_symbol <", value, "coinSymbol");
            return (Criteria) this;
        }

        public Criteria andCoinSymbolLessThanOrEqualTo(String value) {
            addCriterion("coin_symbol <=", value, "coinSymbol");
            return (Criteria) this;
        }

        public Criteria andCoinSymbolLike(String value) {
            addCriterion("coin_symbol like", value, "coinSymbol");
            return (Criteria) this;
        }

        public Criteria andCoinSymbolNotLike(String value) {
            addCriterion("coin_symbol not like", value, "coinSymbol");
            return (Criteria) this;
        }

        public Criteria andCoinSymbolIn(List<String> values) {
            addCriterion("coin_symbol in", values, "coinSymbol");
            return (Criteria) this;
        }

        public Criteria andCoinSymbolNotIn(List<String> values) {
            addCriterion("coin_symbol not in", values, "coinSymbol");
            return (Criteria) this;
        }

        public Criteria andCoinSymbolBetween(String value1, String value2) {
            addCriterion("coin_symbol between", value1, value2, "coinSymbol");
            return (Criteria) this;
        }

        public Criteria andCoinSymbolNotBetween(String value1, String value2) {
            addCriterion("coin_symbol not between", value1, value2, "coinSymbol");
            return (Criteria) this;
        }

        public Criteria andCoinUrlIsNull() {
            addCriterion("coin_url is null");
            return (Criteria) this;
        }

        public Criteria andCoinUrlIsNotNull() {
            addCriterion("coin_url is not null");
            return (Criteria) this;
        }

        public Criteria andCoinUrlEqualTo(String value) {
            addCriterion("coin_url =", value, "coinUrl");
            return (Criteria) this;
        }

        public Criteria andCoinUrlNotEqualTo(String value) {
            addCriterion("coin_url <>", value, "coinUrl");
            return (Criteria) this;
        }

        public Criteria andCoinUrlGreaterThan(String value) {
            addCriterion("coin_url >", value, "coinUrl");
            return (Criteria) this;
        }

        public Criteria andCoinUrlGreaterThanOrEqualTo(String value) {
            addCriterion("coin_url >=", value, "coinUrl");
            return (Criteria) this;
        }

        public Criteria andCoinUrlLessThan(String value) {
            addCriterion("coin_url <", value, "coinUrl");
            return (Criteria) this;
        }

        public Criteria andCoinUrlLessThanOrEqualTo(String value) {
            addCriterion("coin_url <=", value, "coinUrl");
            return (Criteria) this;
        }

        public Criteria andCoinUrlLike(String value) {
            addCriterion("coin_url like", value, "coinUrl");
            return (Criteria) this;
        }

        public Criteria andCoinUrlNotLike(String value) {
            addCriterion("coin_url not like", value, "coinUrl");
            return (Criteria) this;
        }

        public Criteria andCoinUrlIn(List<String> values) {
            addCriterion("coin_url in", values, "coinUrl");
            return (Criteria) this;
        }

        public Criteria andCoinUrlNotIn(List<String> values) {
            addCriterion("coin_url not in", values, "coinUrl");
            return (Criteria) this;
        }

        public Criteria andCoinUrlBetween(String value1, String value2) {
            addCriterion("coin_url between", value1, value2, "coinUrl");
            return (Criteria) this;
        }

        public Criteria andCoinUrlNotBetween(String value1, String value2) {
            addCriterion("coin_url not between", value1, value2, "coinUrl");
            return (Criteria) this;
        }

        public Criteria andCoinChineseNameIsNull() {
            addCriterion("coin_chinese_name is null");
            return (Criteria) this;
        }

        public Criteria andCoinChineseNameIsNotNull() {
            addCriterion("coin_chinese_name is not null");
            return (Criteria) this;
        }

        public Criteria andCoinChineseNameEqualTo(String value) {
            addCriterion("coin_chinese_name =", value, "coinChineseName");
            return (Criteria) this;
        }

        public Criteria andCoinChineseNameNotEqualTo(String value) {
            addCriterion("coin_chinese_name <>", value, "coinChineseName");
            return (Criteria) this;
        }

        public Criteria andCoinChineseNameGreaterThan(String value) {
            addCriterion("coin_chinese_name >", value, "coinChineseName");
            return (Criteria) this;
        }

        public Criteria andCoinChineseNameGreaterThanOrEqualTo(String value) {
            addCriterion("coin_chinese_name >=", value, "coinChineseName");
            return (Criteria) this;
        }

        public Criteria andCoinChineseNameLessThan(String value) {
            addCriterion("coin_chinese_name <", value, "coinChineseName");
            return (Criteria) this;
        }

        public Criteria andCoinChineseNameLessThanOrEqualTo(String value) {
            addCriterion("coin_chinese_name <=", value, "coinChineseName");
            return (Criteria) this;
        }

        public Criteria andCoinChineseNameLike(String value) {
            addCriterion("coin_chinese_name like", value, "coinChineseName");
            return (Criteria) this;
        }

        public Criteria andCoinChineseNameNotLike(String value) {
            addCriterion("coin_chinese_name not like", value, "coinChineseName");
            return (Criteria) this;
        }

        public Criteria andCoinChineseNameIn(List<String> values) {
            addCriterion("coin_chinese_name in", values, "coinChineseName");
            return (Criteria) this;
        }

        public Criteria andCoinChineseNameNotIn(List<String> values) {
            addCriterion("coin_chinese_name not in", values, "coinChineseName");
            return (Criteria) this;
        }

        public Criteria andCoinChineseNameBetween(String value1, String value2) {
            addCriterion("coin_chinese_name between", value1, value2, "coinChineseName");
            return (Criteria) this;
        }

        public Criteria andCoinChineseNameNotBetween(String value1, String value2) {
            addCriterion("coin_chinese_name not between", value1, value2, "coinChineseName");
            return (Criteria) this;
        }

        public Criteria andOfficialWebsiteIsNull() {
            addCriterion("official_website is null");
            return (Criteria) this;
        }

        public Criteria andOfficialWebsiteIsNotNull() {
            addCriterion("official_website is not null");
            return (Criteria) this;
        }

        public Criteria andOfficialWebsiteEqualTo(String value) {
            addCriterion("official_website =", value, "officialWebsite");
            return (Criteria) this;
        }

        public Criteria andOfficialWebsiteNotEqualTo(String value) {
            addCriterion("official_website <>", value, "officialWebsite");
            return (Criteria) this;
        }

        public Criteria andOfficialWebsiteGreaterThan(String value) {
            addCriterion("official_website >", value, "officialWebsite");
            return (Criteria) this;
        }

        public Criteria andOfficialWebsiteGreaterThanOrEqualTo(String value) {
            addCriterion("official_website >=", value, "officialWebsite");
            return (Criteria) this;
        }

        public Criteria andOfficialWebsiteLessThan(String value) {
            addCriterion("official_website <", value, "officialWebsite");
            return (Criteria) this;
        }

        public Criteria andOfficialWebsiteLessThanOrEqualTo(String value) {
            addCriterion("official_website <=", value, "officialWebsite");
            return (Criteria) this;
        }

        public Criteria andOfficialWebsiteLike(String value) {
            addCriterion("official_website like", value, "officialWebsite");
            return (Criteria) this;
        }

        public Criteria andOfficialWebsiteNotLike(String value) {
            addCriterion("official_website not like", value, "officialWebsite");
            return (Criteria) this;
        }

        public Criteria andOfficialWebsiteIn(List<String> values) {
            addCriterion("official_website in", values, "officialWebsite");
            return (Criteria) this;
        }

        public Criteria andOfficialWebsiteNotIn(List<String> values) {
            addCriterion("official_website not in", values, "officialWebsite");
            return (Criteria) this;
        }

        public Criteria andOfficialWebsiteBetween(String value1, String value2) {
            addCriterion("official_website between", value1, value2, "officialWebsite");
            return (Criteria) this;
        }

        public Criteria andOfficialWebsiteNotBetween(String value1, String value2) {
            addCriterion("official_website not between", value1, value2, "officialWebsite");
            return (Criteria) this;
        }

        public Criteria andOnlineExchangeIsNull() {
            addCriterion("online_exchange is null");
            return (Criteria) this;
        }

        public Criteria andOnlineExchangeIsNotNull() {
            addCriterion("online_exchange is not null");
            return (Criteria) this;
        }

        public Criteria andOnlineExchangeEqualTo(String value) {
            addCriterion("online_exchange =", value, "onlineExchange");
            return (Criteria) this;
        }

        public Criteria andOnlineExchangeNotEqualTo(String value) {
            addCriterion("online_exchange <>", value, "onlineExchange");
            return (Criteria) this;
        }

        public Criteria andOnlineExchangeGreaterThan(String value) {
            addCriterion("online_exchange >", value, "onlineExchange");
            return (Criteria) this;
        }

        public Criteria andOnlineExchangeGreaterThanOrEqualTo(String value) {
            addCriterion("online_exchange >=", value, "onlineExchange");
            return (Criteria) this;
        }

        public Criteria andOnlineExchangeLessThan(String value) {
            addCriterion("online_exchange <", value, "onlineExchange");
            return (Criteria) this;
        }

        public Criteria andOnlineExchangeLessThanOrEqualTo(String value) {
            addCriterion("online_exchange <=", value, "onlineExchange");
            return (Criteria) this;
        }

        public Criteria andOnlineExchangeLike(String value) {
            addCriterion("online_exchange like", value, "onlineExchange");
            return (Criteria) this;
        }

        public Criteria andOnlineExchangeNotLike(String value) {
            addCriterion("online_exchange not like", value, "onlineExchange");
            return (Criteria) this;
        }

        public Criteria andOnlineExchangeIn(List<String> values) {
            addCriterion("online_exchange in", values, "onlineExchange");
            return (Criteria) this;
        }

        public Criteria andOnlineExchangeNotIn(List<String> values) {
            addCriterion("online_exchange not in", values, "onlineExchange");
            return (Criteria) this;
        }

        public Criteria andOnlineExchangeBetween(String value1, String value2) {
            addCriterion("online_exchange between", value1, value2, "onlineExchange");
            return (Criteria) this;
        }

        public Criteria andOnlineExchangeNotBetween(String value1, String value2) {
            addCriterion("online_exchange not between", value1, value2, "onlineExchange");
            return (Criteria) this;
        }

        public Criteria andReviewFlagIsNull() {
            addCriterion("review_flag is null");
            return (Criteria) this;
        }

        public Criteria andReviewFlagIsNotNull() {
            addCriterion("review_flag is not null");
            return (Criteria) this;
        }

        public Criteria andReviewFlagEqualTo(Integer value) {
            addCriterion("review_flag =", value, "reviewFlag");
            return (Criteria) this;
        }

        public Criteria andReviewFlagNotEqualTo(Integer value) {
            addCriterion("review_flag <>", value, "reviewFlag");
            return (Criteria) this;
        }

        public Criteria andReviewFlagGreaterThan(Integer value) {
            addCriterion("review_flag >", value, "reviewFlag");
            return (Criteria) this;
        }

        public Criteria andReviewFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("review_flag >=", value, "reviewFlag");
            return (Criteria) this;
        }

        public Criteria andReviewFlagLessThan(Integer value) {
            addCriterion("review_flag <", value, "reviewFlag");
            return (Criteria) this;
        }

        public Criteria andReviewFlagLessThanOrEqualTo(Integer value) {
            addCriterion("review_flag <=", value, "reviewFlag");
            return (Criteria) this;
        }

        public Criteria andReviewFlagIn(List<Integer> values) {
            addCriterion("review_flag in", values, "reviewFlag");
            return (Criteria) this;
        }

        public Criteria andReviewFlagNotIn(List<Integer> values) {
            addCriterion("review_flag not in", values, "reviewFlag");
            return (Criteria) this;
        }

        public Criteria andReviewFlagBetween(Integer value1, Integer value2) {
            addCriterion("review_flag between", value1, value2, "reviewFlag");
            return (Criteria) this;
        }

        public Criteria andReviewFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("review_flag not between", value1, value2, "reviewFlag");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}